#include<stdio.h>
#include<string.h>

int main()
{
  FILE * pfile;
  pfile = fopen("bite", "ab+");

  char* putin = "linux so easy!";
  fwrite(putin, sizeof(char), strlen(putin), pfile);
  fclose(pfile);

  char putout[20] = {0};
  //putout[0] = 'a';
  
  pfile = fopen("bite", "rb");
  fread(putout, sizeof(char), strlen(putin), pfile);
  printf("%s\n", putout);
  fclose(pfile);

  return 0;
}
